package com.hb.unic.core.context.processor;

import com.hb.unic.core.context.handler.IAfterStartupHandler;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;

import com.hb.unic.core.dispatcher.EventUtils;

/**
 * 项目启动前
 *
 * @since v1.0，2023/8/29 22:14，create by Mr.Huang.
 */
public class AfterStartupProcessor implements ApplicationListener<ApplicationReadyEvent> {

    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
        EventUtils.dispatch(IAfterStartupHandler.class);
    }

}
